package edu.ucsc.gameAI.conditions;

import edu.ucsc.gameAI.ICondition;
import pacman.game.Constants;
import pacman.game.Constants.GHOST;
import pacman.game.Constants.MOVE;
import pacman.game.Game;

public class GhostLastMove implements ICondition{
	
	GHOST gghost;
	MOVE move;
	
	public GhostLastMove(Constants.GHOST ghost, Constants.MOVE move)
	{
		gghost = ghost;
		this.move = move;
	}

	public boolean test(Game game) {
		return move == game.getGhostLastMoveMade(gghost);
	}

}
